package com.jdd.enterprise.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import java.io.Serializable;

/**
 * @author xxxx
 */
@Data
@ApiModel("分页请求参数")
public class PageRequest<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 页码
     */
    @ApiModelProperty(value = "页码", required = true, example = "1")
    private Long currentPage = 1L;
    /**
     * 页面记录数
     */
    @ApiModelProperty(value = "页面记录数", required = true, example = "20")
    private Long pageSize = 20L;
    /**
     * 请求参数
     */
    @ApiModelProperty("请求参数")
    @Valid
    private T param;
}
